package com.zshan.clinic.database.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 检查单执行表
 */
public class OrderExamExec implements Serializable {
    /** 执行ID;挂号ID */
    private Long execId;

    /** 检查单ID;唯一诊号 */
    private Long orderId;

    /** 当前第几次 */
    private Integer currentTimes;

    /** 检查描述 */
    private String examDesc;

    /** 诊断意见;1.阴性2.阳性 */
    private String diagnosisFlag;

    /** 诊断内容 */
    private String diagnosisContent;

    /** 图片 */
    private String examImageList;

    /** 检验人ID */
    private Long examEmpId;

    /** 检验人姓名 */
    private String examEmpName;

    /** 检验科室ID */
    private Long examDeptId;

    /** 检验科室名 */
    private String examDeptName;

    /** 检验时间 */
    private Date examTime;

    /** 检查状态;1未检查2已检查 */
    private String examStatus;

    /** 审核状态 */
    private String auditStatus;

    /** 审核人ID */
    private Long auditUserId;

    /** 审核人名 */
    private String auditBy;

    /** 审核时间 */
    private Date auditTime;

    /** 拒绝原因 */
    private String refuseReason;

    /** 排序号 */
    private Integer sortNum;

    /** 诊所ID */
    private Long clinicId;

    /** 启用状态;启用状态 */
    private String isEnabled;

    /** 删除标识 */
    private String isDelete;

    /** 创建人ID */
    private Long createUserId;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    private Date createTime;

    /** 更新人ID */
    private Long updateUserId;

    /** 更新人 */
    private String updateBy;

    /** 更新时间 */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getExecId() {
        return execId;
    }

    public void setExecId(Long execId) {
        this.execId = execId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getCurrentTimes() {
        return currentTimes;
    }

    public void setCurrentTimes(Integer currentTimes) {
        this.currentTimes = currentTimes;
    }

    public String getExamDesc() {
        return examDesc;
    }

    public void setExamDesc(String examDesc) {
        this.examDesc = examDesc == null ? null : examDesc.trim();
    }

    public String getDiagnosisFlag() {
        return diagnosisFlag;
    }

    public void setDiagnosisFlag(String diagnosisFlag) {
        this.diagnosisFlag = diagnosisFlag == null ? null : diagnosisFlag.trim();
    }

    public String getDiagnosisContent() {
        return diagnosisContent;
    }

    public void setDiagnosisContent(String diagnosisContent) {
        this.diagnosisContent = diagnosisContent == null ? null : diagnosisContent.trim();
    }

    public String getExamImageList() {
        return examImageList;
    }

    public void setExamImageList(String examImageList) {
        this.examImageList = examImageList == null ? null : examImageList.trim();
    }

    public Long getExamEmpId() {
        return examEmpId;
    }

    public void setExamEmpId(Long examEmpId) {
        this.examEmpId = examEmpId;
    }

    public String getExamEmpName() {
        return examEmpName;
    }

    public void setExamEmpName(String examEmpName) {
        this.examEmpName = examEmpName == null ? null : examEmpName.trim();
    }

    public Long getExamDeptId() {
        return examDeptId;
    }

    public void setExamDeptId(Long examDeptId) {
        this.examDeptId = examDeptId;
    }

    public String getExamDeptName() {
        return examDeptName;
    }

    public void setExamDeptName(String examDeptName) {
        this.examDeptName = examDeptName == null ? null : examDeptName.trim();
    }

    public Date getExamTime() {
        return examTime;
    }

    public void setExamTime(Date examTime) {
        this.examTime = examTime;
    }

    public String getExamStatus() {
        return examStatus;
    }

    public void setExamStatus(String examStatus) {
        this.examStatus = examStatus == null ? null : examStatus.trim();
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus == null ? null : auditStatus.trim();
    }

    public Long getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserId(Long auditUserId) {
        this.auditUserId = auditUserId;
    }

    public String getAuditBy() {
        return auditBy;
    }

    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy == null ? null : auditBy.trim();
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason == null ? null : refuseReason.trim();
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Long getClinicId() {
        return clinicId;
    }

    public void setClinicId(Long clinicId) {
        this.clinicId = clinicId;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled == null ? null : isEnabled.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderExamExec other = (OrderExamExec) that;
        return (this.getExecId() == null ? other.getExecId() == null : this.getExecId().equals(other.getExecId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getCurrentTimes() == null ? other.getCurrentTimes() == null : this.getCurrentTimes().equals(other.getCurrentTimes()))
            && (this.getExamDesc() == null ? other.getExamDesc() == null : this.getExamDesc().equals(other.getExamDesc()))
            && (this.getDiagnosisFlag() == null ? other.getDiagnosisFlag() == null : this.getDiagnosisFlag().equals(other.getDiagnosisFlag()))
            && (this.getDiagnosisContent() == null ? other.getDiagnosisContent() == null : this.getDiagnosisContent().equals(other.getDiagnosisContent()))
            && (this.getExamImageList() == null ? other.getExamImageList() == null : this.getExamImageList().equals(other.getExamImageList()))
            && (this.getExamEmpId() == null ? other.getExamEmpId() == null : this.getExamEmpId().equals(other.getExamEmpId()))
            && (this.getExamEmpName() == null ? other.getExamEmpName() == null : this.getExamEmpName().equals(other.getExamEmpName()))
            && (this.getExamDeptId() == null ? other.getExamDeptId() == null : this.getExamDeptId().equals(other.getExamDeptId()))
            && (this.getExamDeptName() == null ? other.getExamDeptName() == null : this.getExamDeptName().equals(other.getExamDeptName()))
            && (this.getExamTime() == null ? other.getExamTime() == null : this.getExamTime().equals(other.getExamTime()))
            && (this.getExamStatus() == null ? other.getExamStatus() == null : this.getExamStatus().equals(other.getExamStatus()))
            && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))
            && (this.getAuditUserId() == null ? other.getAuditUserId() == null : this.getAuditUserId().equals(other.getAuditUserId()))
            && (this.getAuditBy() == null ? other.getAuditBy() == null : this.getAuditBy().equals(other.getAuditBy()))
            && (this.getAuditTime() == null ? other.getAuditTime() == null : this.getAuditTime().equals(other.getAuditTime()))
            && (this.getRefuseReason() == null ? other.getRefuseReason() == null : this.getRefuseReason().equals(other.getRefuseReason()))
            && (this.getSortNum() == null ? other.getSortNum() == null : this.getSortNum().equals(other.getSortNum()))
            && (this.getClinicId() == null ? other.getClinicId() == null : this.getClinicId().equals(other.getClinicId()))
            && (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExecId() == null) ? 0 : getExecId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getCurrentTimes() == null) ? 0 : getCurrentTimes().hashCode());
        result = prime * result + ((getExamDesc() == null) ? 0 : getExamDesc().hashCode());
        result = prime * result + ((getDiagnosisFlag() == null) ? 0 : getDiagnosisFlag().hashCode());
        result = prime * result + ((getDiagnosisContent() == null) ? 0 : getDiagnosisContent().hashCode());
        result = prime * result + ((getExamImageList() == null) ? 0 : getExamImageList().hashCode());
        result = prime * result + ((getExamEmpId() == null) ? 0 : getExamEmpId().hashCode());
        result = prime * result + ((getExamEmpName() == null) ? 0 : getExamEmpName().hashCode());
        result = prime * result + ((getExamDeptId() == null) ? 0 : getExamDeptId().hashCode());
        result = prime * result + ((getExamDeptName() == null) ? 0 : getExamDeptName().hashCode());
        result = prime * result + ((getExamTime() == null) ? 0 : getExamTime().hashCode());
        result = prime * result + ((getExamStatus() == null) ? 0 : getExamStatus().hashCode());
        result = prime * result + ((getAuditStatus() == null) ? 0 : getAuditStatus().hashCode());
        result = prime * result + ((getAuditUserId() == null) ? 0 : getAuditUserId().hashCode());
        result = prime * result + ((getAuditBy() == null) ? 0 : getAuditBy().hashCode());
        result = prime * result + ((getAuditTime() == null) ? 0 : getAuditTime().hashCode());
        result = prime * result + ((getRefuseReason() == null) ? 0 : getRefuseReason().hashCode());
        result = prime * result + ((getSortNum() == null) ? 0 : getSortNum().hashCode());
        result = prime * result + ((getClinicId() == null) ? 0 : getClinicId().hashCode());
        result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", execId=").append(execId);
        sb.append(", orderId=").append(orderId);
        sb.append(", currentTimes=").append(currentTimes);
        sb.append(", examDesc=").append(examDesc);
        sb.append(", diagnosisFlag=").append(diagnosisFlag);
        sb.append(", diagnosisContent=").append(diagnosisContent);
        sb.append(", examImageList=").append(examImageList);
        sb.append(", examEmpId=").append(examEmpId);
        sb.append(", examEmpName=").append(examEmpName);
        sb.append(", examDeptId=").append(examDeptId);
        sb.append(", examDeptName=").append(examDeptName);
        sb.append(", examTime=").append(examTime);
        sb.append(", examStatus=").append(examStatus);
        sb.append(", auditStatus=").append(auditStatus);
        sb.append(", auditUserId=").append(auditUserId);
        sb.append(", auditBy=").append(auditBy);
        sb.append(", auditTime=").append(auditTime);
        sb.append(", refuseReason=").append(refuseReason);
        sb.append(", sortNum=").append(sortNum);
        sb.append(", clinicId=").append(clinicId);
        sb.append(", isEnabled=").append(isEnabled);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}